package com.bci.pwtz.mysql.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.bci.pwtz.mysql.model.Dictionary;

public interface DictionaryMapper {
    int deleteByPrimaryKey(Long dictionaryId);

    int insert(Dictionary record);

    int insertSelective(Dictionary record);

    Dictionary selectByPrimaryKey(Long dictionaryId);

    int updateByPrimaryKeySelective(Dictionary record);

    int updateByPrimaryKey(Dictionary record);
    
    int deleteById(@Param("dictionaryId")String dictionaryId);
 
    List<Dictionary> selectDictionary(@Param("typeId")Long typeId,@Param("creatorId")Long creatorId);
    
    int selectCountDictionary(@Param("typeId")Long typeId,@Param("creatorId")Long creatorId,@Param("dictionaryValue")String dictionaryValue);

    List<Dictionary> selectByDeviceList(@Param("pid") Long pid,@Param("deviceType")Long deviceType,@Param("status")Integer status,@Param("beginIndex") int beginIndex, @Param("pageSize") int pageSize);
    int selectByDeviceCount(@Param("pid") Long pid,@Param("deviceType")Long deviceType,@Param("status")Integer status);
}